package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 参会人员对象 xhlj_participants
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_participants")
@Entity
@Table(name = "xhlj_participants")
@SailTable(comment = "参会人员表", indexs = {
    @SailIndex(name = "idx_guest_name", type = IndexType.BTREE,
       columns = {"participants_name"}
    ),    @SailIndex(name = "idx_guest_position", type = IndexType.BTREE,
       columns = {"participants_position"}
    ),    @SailIndex(name = "idx_guest_email", type = IndexType.BTREE,
       columns = {"participants_email"}
    )}
)
public class XhljParticipants implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_participants_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_participants_list";
    /**
     * 参会人员id
     */
    @TableId(value = "participants_id", type = IdType.AUTO)
    @Id
    private Integer participantsId;
    /**
     * 参会人员名称
     */
    @Column(name = "participants_name")
    @SailColumn(comment = "参会人员名称",type = "varchar(50)", defaultValue = "NULL")
    private String participantsName;
    /**
     * 大会id
     */
    @SailColumn(comment = "大会id",type = "int", defaultValue = "NULL")
    @Column(name = "conference_info_id")
    private Integer conferenceInfoId;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @SailColumn(comment = "创建人sys_user（大会管理员/活动负责人）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 参会人员职务
     */
    @Column(name = "participants_position")
    @SailColumn(comment = "参会人员职务",type = "varchar(50)", defaultValue = "NULL")
    private String participantsPosition;
    /**
     * 参会人员头像
     */
    @Column(name = "participants_avatar")
    @SailColumn(comment = "参会人员头像",type = "text", defaultValue = "NULL")
    private String participantsAvatar;
    /**
     * 参会人员性别（0=男，1=女）
     */
    @Column(name = "participants_sex")
    @SailColumn(comment = "参会人员性别（0=男，1=女）",type = "char(3)", defaultValue = "0")
    private String participantsSex;
    /**
     * 参会人员年龄
     */
    @Column(name = "participants_age")
    @SailColumn(comment = "参会人员年龄",type = "int", defaultValue = "NULL")
    private Integer participantsAge;
    /**
     * 参会人员电话
     */
    @Column(name = "participants_phone")
    @SailColumn(comment = "参会人员电话",type = "varchar(20)", defaultValue = "NULL")
    private String participantsPhone;
    /**
     * 参会人员邮箱
     */
    @Column(name = "participants_email")
    @SailColumn(comment = "参会人员邮箱",type = "varchar(50)", defaultValue = "NULL")
    private String participantsEmail;
    /**
     * 参会人员描述
     */
    @Column(name = "participants_content")
    @SailColumn(comment = "参会人员描述",type = "text", defaultValue = "NULL")
    private String participantsContent;
    /**
     * 参会人员个人成就
     */
    @Column(name = "participants_achievement")
    @SailColumn(comment = "参会人员个人成就",type = "text", defaultValue = "NULL")
    private String participantsAchievement;
    /**
     * 参会人员类型（0=演讲人，1=主持人，2=技术顾问，3=嘉宾，4=大会联系人）
     */
    @Column(name = "participants_type")
    @SailColumn(comment = "参会人员类型（0=演讲人，1=主持人，2=技术顾问，3=嘉宾，4=大会联系人）",type = "char(3)", defaultValue = "3")
    private String participantsType;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标识符
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标识符",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
